Password Field

Does anyone know a way to get a DBE of type password?

i.e. A field that when you type in it you see "************" instead of the text being typed.
Thanks,
Steve Valliere
StephenValliere - Mon Feb 28 14:51:49 EST 2011

Re: Password Field
Mathias Mamsch - Mon Feb 28 15:23:27 EST 2011

Did you try the below perms (DOORS 9.3+)?
 

DBE passwordField (DB diag, string label, string initial, int width)
DBE passwordField (DB diag, string label, string initial, int width, bool readOnly)

 


There is nothing in the DXL help, but I would guess that the parameters are as above stated.

Hope that helps, Regards, Mathias

 

 

 


Mathias Mamsch, IT-QBase GmbH, Consultant for Requirement Engineering and D00RS

 

 

Re: Password Field
StephenValliere - Mon Feb 28 15:31:52 EST 2011

Mathias Mamsch - Mon Feb 28 15:23:27 EST 2011

Did you try the below perms (DOORS 9.3+)?
 

DBE passwordField (DB diag, string label, string initial, int width)
DBE passwordField (DB diag, string label, string initial, int width, bool readOnly)

 


There is nothing in the DXL help, but I would guess that the parameters are as above stated.

Hope that helps, Regards, Mathias

 

 

 


Mathias Mamsch, IT-QBase GmbH, Consultant for Requirement Engineering and D00RS

 

 

Thanks Mathias,

That worked great.

Re: Password Field
suraj_munale - Sat Aug 11 07:22:11 EDT 2012

Mathias Mamsch - Mon Feb 28 15:23:27 EST 2011

Did you try the below perms (DOORS 9.3+)?
 

DBE passwordField (DB diag, string label, string initial, int width)
DBE passwordField (DB diag, string label, string initial, int width, bool readOnly)

 


There is nothing in the DXL help, but I would guess that the parameters are as above stated.

Hope that helps, Regards, Mathias

 

 

 


Mathias Mamsch, IT-QBase GmbH, Consultant for Requirement Engineering and D00RS

 

 

HI,
thanks you for your post..
I have used following line of code for password filed.

passwordField =passwordField(mainBox,"password:",password,50)

but it is giving error:

-E- DXL: <Line:105> incorrectly concatenated tokens
-I- DXL: All done. Errors reported: 1. Warnings reported: 0.
I am using DOORS 9.3
please reply me asap...

Re: Password Field
Mathias Mamsch - Sat Aug 11 12:01:47 EDT 2012

suraj_munale - Sat Aug 11 07:22:11 EDT 2012
HI,
thanks you for your post..
I have used following line of code for password filed.

passwordField =passwordField(mainBox,"password:",password,50)

but it is giving error:

-E- DXL: <Line:105> incorrectly concatenated tokens
-I- DXL: All done. Errors reported: 1. Warnings reported: 0.
I am using DOORS 9.3
please reply me asap...

Well it is generally a bad idea to use variable names that are like perms. In your case it is pretty obvious why you are getting the error. Try
 

DBE dbePWField = passwordField(mainBox,"password:",password,50)

 


Maybe that helps, regards, Mathias

 

 

 


Mathias Mamsch, IT-QBase GmbH, Consultant for Requirement Engineering and D00RS